package com.crm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
@Data
@TableName("clue")
public class Clue {
    private Long id;//线索id
    private String phone;//手机号
    private Integer channel;//渠道id
    private String name;//客户姓名
    //字段名
    @TableField("activityid")
    private Integer activityId;//活动id
    private Integer sex;//性别
    private Integer age;//年龄
    private String weixin;//微信号
    private String qq;//qq号
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("createtime")
    private LocalDateTime createTime;//创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("updatetime")
    private LocalDateTime updateTime;//跟进时间
    private Integer status;//线索状态（1线索，3
    //@TableField("user_id")
    private Integer userid;//归属人id
    private Integer faketype;//伪线索标识
    @TableField("assignby")
    private Integer assignby;//跟进人id
    private Integer transfer;//转换标准
    @TableField(exist = false)
    private String assignName;//跟进人name

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private LocalDateTime nextTime;//下次跟进时间

    @TableField(exist = false)
    private String owner;//分配name
}
